<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>管理员首页</title>
<%@ include file="/static/myjs/information/home/home_include.jsp"%>
</head>
<body>
	<div id="main">
    <div id="currency">
        <div class="icon">
            <i class="iconfont icon-qian"></i>
        </div>
        <div class="currency">
            <div class="currency-left" style="width:34%">
                <p>账户金额</p>
                <b>￥</b>
                <a href="#" id="systemBusinessMoneyRecord"><i>${result.BALANCE }</i></a>
            </div>
            <div class="currency-center currency-center1">
                <span>今日线上支付&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)"><i>${result.OL_TOTAL_AMOUNT }&nbsp;元</i></a></span>
                <span>今日线上订单&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)"><i>${result.OL_ORDER_NUMBER }&nbsp;笔</i></a></span>
                <span>今日微信支付&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)"><i>${result.WX_TOTAL_AMOUNT }&nbsp;元</i></a></span>
                <span>今日微信订单&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)"><i>${result.WX_ORDER_NUMBER }&nbsp;笔</i></a></span>
                <span>今日支付宝支付&nbsp;<a href="javascript:void(0)"><i>${result.ALI_TOTAL_AMOUNT }&nbsp;元</i></a></span>
                <span>今日支付宝订单&nbsp;<a href="javascript:void(0)"><i>${result.ALI_ORDER_NUMBER }&nbsp;笔</i></a></span>
                <span>今日现金支付&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)"><i>${result.CASH_TOTAL_AMOUNT }&nbsp;元</i></a></span>
                <span>今日现金订单&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)"><i>${result.CASH_ORDER_NUMBER }&nbsp;笔</i></a></span>
            </div>
        </div>
    </div>
    <div class="apart">
        <div id="buss">
            <div class="icon">
                <i class="iconfont icon-Shape"></i>
            </div>
            <div class="apart-left">
                <p>商户</p>
                <a href="#" id="businessList">
                    ${result.BUSINESS_COUNT} 家
                </a>
            </div>
            <div class="apart-center">
                <p>注册待审核&nbsp;<a href="#"  id="businessAudit">${result.AUDIT_COUNT} </a>&nbsp;&nbsp;家</p>
                <p>正在使用&nbsp;&nbsp;&nbsp;&nbsp;<a href="#"  id="businessUse">${result.BUSINESS_USE}</a>&nbsp;&nbsp;家</p>
                <p>试用商户&nbsp;&nbsp;&nbsp;&nbsp;<a href="#"  id="businessOntria">${result.BUSINESS_ONTRIA_NUMBER}</a>&nbsp;&nbsp;家</p>
                <p>过期商户&nbsp;&nbsp;&nbsp;&nbsp;<a href="#"  id="businessOverdue">${result.BUSINESS_OVERDUE_NUMBER}</a>&nbsp;&nbsp;家</p>
                <p>即将过期&nbsp;&nbsp;&nbsp;&nbsp;<a href="#"  id="businessDue">${result.BUSINESS_DOU_NUMBER}</a>&nbsp;&nbsp;家</p>
            </div>
        </div>
        <div id="agent">
            <div class="icon">
                <i class="iconfont icon-dailishu"></i>
            </div>
            <div class="apart-left">
                <p>代理商</p>
                <a href="#" id="agentList">
                    ${result.AGENT_COUNT} 家
                </a>
            </div>
            <div class="apart-center">
                <p>意向代理&nbsp;&nbsp;<a href="javascript:void(0)">0</a>&nbsp;&nbsp;家</p>
            </div>
        </div>
    </div>
</div>
	
	<script type="text/javascript">
		$(function() {
			$('#businessAudit').on('click', function() {
				window.parent.addTab('businessAudit', '注册待审核', rootpath +'/audit/toList.do', 'fa-star', 'businessAudit');
			})
			$('#businessUse').on('click', function() {
				window.parent.addTab('businessUse', '正在使用', rootpath + '/home/toMyBusiness.do?flag=USE', 'fa-star', 'businessUse');
			})
			$('#businessOntria').on('click', function() {
				window.parent.addTab('businessOntria', '试用商户', rootpath + '/home/toMyBusiness.do?flag=ONTRIA', 'fa-star', 'businessOntria');
			})
			$('#businessOverdue').on('click', function() {
				window.parent.addTab('businessOverdue', '过期商户', rootpath + '/home/toMyBusiness.do?flag=OVERDUE', 'fa-star', 'businessOverdue');
			})
			$('#businessDue').on('click', function() {
				window.parent.addTab('businessDue', '即将过期', rootpath + '/home/toMyBusiness.do?flag=DUE', 'fa-star', 'businessDue');
			})
			$('#agentList').on('click', function() {
				window.parent.addTab('agentList', '代理商', rootpath + '/agent/toList.do', 'fa-star', 'agentList');
			})
			$('#businessList').on('click', function() {
				window.parent.addTab('businessList', '商户信息', rootpath + '/business/toList.do', 'fa-star', 'businessList');
			})
			$('#systemBusinessMoneyRecord').on('click', function() {
				window.parent.addTab('systemBusinessMoneyRecordId', '账户明细', rootpath + '/home/toSystemBusinessMoneyRecordList.do', 'fa-star', 'systemBusinessMoneyRecordId');
			})
		})
	</script>
</body>
</html>